require('@jassets/css/app.css')
$['components-jq'] = {
	mainComp: {},
	userComp: {},
	teamComp: {},
	apisComp: {},
	projectComp: {},
}
$.storage = {}
const spaRouters = require('@jutils/spa-routers')
$(function() {
	$("#app").height(document.body.scrollHeight)
	spaRouters.start({
		view: "#app",
		router: {
			index: {
				component: {
					page(resolve) {
						import('@jviews/login/index.html').then(resolve);
					},
					init: require('@jmodules/login'),
				}
			},
			main: {
				component: {
					// page(resolve) {
					// 	import('@jviews/main/main.html').then(resolve);
					// },
					page: '<div id="main-layout"></div>',
					init: require('@jmodules/main/init-main'),
				}
			},
			defaults: 'index',
		}
	})
	$.spaRouters = spaRouters
})